package cn.fbs.dao.dm;

import cn.fbs.model.TProductInfo;
import cn.fbs.vo.TProductInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DMProductInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TProductInfo record);

    int insertSelective(TProductInfo record);

    TProductInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TProductInfo record);

    int updateByPrimaryKeyWithBLOBs(TProductInfo record);

    int updateByPrimaryKey(TProductInfo record);


    List<TProductInfoVo> selectProductByTargetType(Long targetType);

    List<TProductInfoVo> searchProduct(@Param("targetType") Long targetType,
                                       @Param("productName")String productName,
                                       @Param("productType")int productType);
}